#include "RenderTarget.h"
#include "IGraphicsDevice.h"
#include "Exception.h"


NS_B2D_BEGIN

RenderTarget::RenderTarget(void)
	: mSize(1,1)
	, mBackgroundColor(Color::Transparent)
{
}

RenderTarget::~RenderTarget(void)
{
}

void RenderTarget::render(IGraphicsDevice& g) const
{
	g._setActiveRenderTarget(*this);
	g.clearFrameBuffers(FrameBufferType::COLOR, mBackgroundColor, 0, 0);
}

NS_B2D_END